package com.ftx.dao;

import com.ftx.domain.alias.Article;
import com.ftx.domain.alias.PageCondition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by fengtingxin on 2019/6/10.
 */
public interface ArticleMapper {

    int insert(Article article);

    int update(Article article);

    List<Article> pageByCondition(@Param("page")PageCondition page ,@Param("query") Article query);

    Article getOne(Article article);
}
